package gao.xiaolei.dao;

import gao.xiaolei.entity.TestRequirementDesignCover;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository("TestRequirementDesignCoverDao")
public interface TestRequirementDesignCoverDao extends JpaRepository<TestRequirementDesignCover,String> {

    @Modifying
    public void deleteByTestDesignId(String testDesign);

    @Modifying
    public void deleteAllByTestDesignIdIn(List<String> testDesign);

    @Modifying
    public void deleteByTestRequirementId(String testRequirementId);

    public List<TestRequirementDesignCover> findByTestDesignId(String testDesignId);

}
